<?php

namespace app\store\controller\store;

use app\store\controller\Controller;
use think\facade\Cache;

class Setting extends Controller
{


    public function info()
    {
        $data = (int)Cache::get('qrcode_type') ?: 0;
        return $this->renderSuccess(['qrcode_type' => $data]);
    }

    public function save()
    {
        Cache::set('qrcode_type', $this->postForm()['qrcode_type']);
        return $this->renderSuccess();
    }
}
